<?php

namespace common\models;

use Yii;
use \common\models\base\SummitInformation as BaseSummitInformation;

/**
 * This is the model class for table "summit_information".
 */
class SummitInformation extends BaseSummitInformation
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return array_replace_recursive(parent::rules(),
	    [
            [['view'], 'required'],
            [['view'], 'string', 'max' => 30],
            [['name'], 'string', 'max' => 50]
        ]);
    }

    public static function getBasic()
    {
        return self::find()->where(['view'=>['basic','forum']])->all();
    }

}
